;-----------------------------------------
; 	PicOS Project
;
; 	HEPIA 2014 - Florent Gluck
;
;	Denis Voirol		Pierre Kiss
;	Ruben Magnin		Alina Stanculescu
;	Sebastien Beureux	Julien Cornut
;-----------------------------------------
;
;	file.x
;
;	comment here
;
;-----------------------------------------

.global _readSectorAsm
.global _writeSectorAsm

; int _read_sector_asm(uint idl, uint si)
_readSectorAsm:

	push bp
	mov bp, sp
	;--------------
	mov dx, [bp+4]
	mov si, [bp+6]
	mov ah, #0x42
	int #0x13
	;--------------
	mov sp, bp
	pop bp
	ret

; int _write_sector_asm(uint idl, uint si)
_writeSectorAsm:

	push bp
	mov bp, sp
	;--------------
	mov dx, [bp+4]
	mov si, [bp+6]
	mov ah, #0x43
	mov al, #0x00
	int #0x13
	;--------------
	mov sp, bp
	pop bp
	ret

